package edu.rpi.tw.pml.browsing.server;

import java.util.ArrayList;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import edu.rpi.tw.pml.browsing.client.FacetSearchService;

public class FacetSearchServiceImpl extends RemoteServiceServlet implements
		FacetSearchService {

	private final TDBConnector connector = new TDBConnector();

	public String getValuesByFacetName(String facetName) {
		return connector.getValuesByFacetName(facetName);
	}

	public String getAllFacets() {
		return connector.getAllFacets();
	}

	/*
	 * (non-Javadoc)
	 * @see edu.rpi.tw.pml.browsing.client.FacetSearchService#getAllConcepts()
	 */
	public String getAllConcepts() {
		return connector.getAllConcepts();
	}

	/*
	 * (non-Javadoc)
	 * @see edu.rpi.tw.pml.browsing.client.FacetSearchService#getAllInstances()
	 */
	public String getAllInstances() {
		// TODO Auto-generated method stub
		return connector.getAllInstances();
	}

	/*
	 * (non-Javadoc)
	 * @see edu.rpi.tw.pml.browsing.client.FacetSearchService#getInstances()
	 */
	public String getInstances(ArrayList<String> conceptList) {
		return connector.getInstances(conceptList);
	}
}